package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.math.BigDecimal;
import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_ACCOUNT_AMOUNT;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_COMPANY_ID;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_EMP_ID;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_EMP_SOC_INFO_ID;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_ID_CARD;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_MONTH;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_NAME;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_OVERDUE_FINE;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_PHONE;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_REALITY_AMOUNT;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_REMARK;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_SERVICE_COST;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_SOC_AMOUNT;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_STATUS;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_TOTAL_AMOUNT;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_UNCOLLECTED_AMOUNT;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.E_YEAR;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.M_EMP_SOC_INFO_ID_MAX;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.M_ID_CARD_MAX;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.M_MONTH_MAX;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.M_NAME_MAX;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.M_PHONE_MAX;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.M_REMARK_MAX;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.M_TOTAL_AMOUNT_NOT_NULL;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.M_YEAR_MAX;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_ACCOUNT_AMOUNT;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_COMPANY_ID;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_EMP_ID;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_EMP_SOC_INFO_ID;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_ID_CARD;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_MONTH;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_NAME;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_OVERDUE_FINE;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_PHONE;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_REALITY_AMOUNT;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_REMARK;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_SERVICE_COST;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_SOC_AMOUNT;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_STATUS;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_TOTAL_AMOUNT;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_UNCOLLECTED_AMOUNT;
import static org.jsola.hr.example.EmpSocBackRecordInfoExample.N_YEAR;

/**
 * 社保回款信息
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【社保回款信息】的参数")
@Data
public class EmpSocBackRecordInfoAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_EMP_SOC_INFO_ID, example = E_EMP_SOC_INFO_ID)
    @Length(max = 32, message = M_EMP_SOC_INFO_ID_MAX)
    private String empSocInfoId;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_NAME, example = E_NAME)
    @Length(max = 50, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_PHONE, example = E_PHONE)
    @Length(max = 11, message = M_PHONE_MAX)
    private String phone;

    @ApiModelProperty(notes = N_ID_CARD, example = E_ID_CARD)
    @Length(max = 20, message = M_ID_CARD_MAX)
    private String idCard;

    @ApiModelProperty(notes = N_YEAR, example = E_YEAR)
    @Length(max = 32, message = M_YEAR_MAX)
    private String year;

    @ApiModelProperty(notes = N_MONTH, example = E_MONTH)
    @Length(max = 32, message = M_MONTH_MAX)
    private String month;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_SERVICE_COST, example = E_SERVICE_COST)
    private BigDecimal serviceCost;

    @ApiModelProperty(notes = N_SOC_AMOUNT, example = E_SOC_AMOUNT)
    private BigDecimal socAmount;

    @ApiModelProperty(notes = N_OVERDUE_FINE, example = E_OVERDUE_FINE)
    private BigDecimal overdueFine;

    @ApiModelProperty(notes = N_TOTAL_AMOUNT, example = E_TOTAL_AMOUNT, required = true)
    @NotNull(message = M_TOTAL_AMOUNT_NOT_NULL)
    private BigDecimal totalAmount;

    @ApiModelProperty(notes = N_REALITY_AMOUNT, example = E_REALITY_AMOUNT)
    private BigDecimal realityAmount;

    @ApiModelProperty(notes = N_ACCOUNT_AMOUNT, example = E_ACCOUNT_AMOUNT)
    private BigDecimal accountAmount;

    @ApiModelProperty(notes = N_UNCOLLECTED_AMOUNT, example = E_UNCOLLECTED_AMOUNT)
    private BigDecimal uncollectedAmount;

    @ApiModelProperty(notes = N_STATUS, example = E_STATUS)
    private Integer status;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 255, message = M_REMARK_MAX)
    private String remark;


}

